package com.gss.plugin.oauth2.service;

import org.springframework.security.core.Authentication;

import javax.servlet.http.HttpServletRequest;

/**
 * @author DYang
 * @date 2023/8/20
 *  自定义授权方式
 */
public interface ICustomAuthService {

    /**
     * 判断是否拥有权限
     * @param request         获取请求信息
     * @param authentication  授权内容
     * @return
     */
    boolean hasPermission(HttpServletRequest request, Authentication authentication);

}
